package com.xa.xamall.framework.vo;

import com.github.pagehelper.PageInfo;

/**
 * Http请求返回的最外层对象
 */
public class P<T> extends R {

    /**
     * 记录总数
     */
    private Long count;

    public P(PageInfo<T> pageInfo) {
        super(SUCCESS, "ok", pageInfo.getList());
        count = pageInfo.getTotal();
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
}
